package cn.edu.dlnu.entity;

import java.util.Date;

public class Question {
    private String qno;
    private String qtext;
    private String uid;
    private Integer upnum;
    private Date uploadtime;

    private Answer topAnswer;

    public String getQno() {
        return qno;
    }

    public void setQno(String qno) {
        this.qno = qno;
    }

    public String getQtext() {
        return qtext;
    }

    public void setQtext(String qtext) {
        this.qtext = qtext;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public Integer getUpnum() {
        return upnum;
    }

    public void setUpnum(Integer upnum) {
        this.upnum = upnum;
    }

    public Date getUploadtime() {
        return uploadtime;
    }

    public void setUploadtime(Date uploadtime) {
        this.uploadtime = uploadtime;
    }

    @Override
    public String toString() {
        return "Question{" +
                "qno='" + qno + '\'' +
                ", qtext='" + qtext + '\'' +
                ", uid='" + uid + '\'' +
                ", upnum=" + upnum +
                ", uploadtime=" + uploadtime +
                '}';
    }

    public Answer getTopAnswer() {
        return topAnswer;
    }

    public void setTopAnswer(Answer topAnswer) {
        this.topAnswer = topAnswer;
    }
}
